<div class="easyui-layout" data-options="fit:true">
    <div data-options="region:'north'" class="center">
        <div class="webmap">

            <p class="webmaptip">当前位置:</p>
            <a href="javascript:;" class="easyui-link" data-options="plain:true">短信管理</a>
            <p class="webmaptip">></p>
            <a href="javascript:;" class="easyui-link" data-options="plain:true">短信日志管理</a>
        </div>
        <div class="querybycon">
            <form id="query">
                <div class="queryinfo">
                    <div> 发件人<input type="text" name="sender"></div>
                    <div>发件人IP<input type="text" name="senderIp"></div>
                    <div>收件人<input type="text" name="recipient"></div>
                    <div>短信类型<input class="easyui-combobox" name="msgType" data-options="url:'/dictionary/msgType'">
                    </div>
                </div>

            </form>
        </div>
        <div class="querybtn">
            <a id="querybtn" href="javascript:;" class="easyui-linkbutton info"
               data-options="iconCls:'fa fa-search'">查询</a>
            <!--<a id="add" href="javascript:;" class="easyui-linkbutton warning" data-options="iconCls:'fa fa-plus'">添加</a>
            <a id="edit" href="javascript:;" class="easyui-linkbutton danger" data-options="iconCls:'fa fa-pencil'">编辑</a>
            <a id="del" href="javascript:;" class="easyui-linkbutton success" data-options="iconCls:'fa fa-remove '">删除</a>-->
        </div>
        <div class="separator"></div>
    </div>
    <div data-options="region:'center'" class="center">
        <table id="list" rownumbers="true"></table>
    </div>
</div>

<script type="text/javascript">
    var addUrl = "page/smsplatform/smsLogAdd.html";
    var editUrl = "page/smsplatform/smsLogEdit.html";
    var delUrl = '/sms/del';
    var save = '/sms/add';
    var listUrl = "/sms/list";
    var columns = [[
        /*{
         field: 'id',
         checkbox: true
         },*/
        {
            field: 'sender',
            title: '发件人',
        }, {
            field: 'senderIp',
            title: '发件人IP',
        }, {
            field: 'recipient',
            title: '收件人',
        }, {
            field: 'msgText',
            title: '短信消息',
        }, {
            field: 'msgType',
            title: '短信类型',
            formatter: function (value, row, index) {
                if (value == "0") {
                    return "验证码"
                } else if (value == "1") {
                    return "还款提醒"
                } else if (value == "2") {
                    return "申请提醒"
                } else {
                    return "其他"
                }
            }
        }, {
            field: 'createdDate',
            title: '发送时间',
        }
    ]];
    list.init({url: listUrl, columns: columns});
</script>
